Overview

Namespaces

  • Charcoal
    • Admin
      • Widget
        • Cms
    • Cms
      • Config
      • Mixin
        • Traits
      • Route
      • Section
      • Service
        • Loader
        • Manager
      • ServiceProvider
      • Support
        • Helpers
        • Interfaces
        • Traits
    • Property

Classes

  • AbstractDocument
  • AbstractEvent
  • AbstractFaq
  • AbstractImage
  • AbstractNews
  • AbstractSection
  • AbstractText
  • AbstractVideo
  • Config
  • Document
  • DocumentCategory
  • EmptySection
  • Event
  • EventCategory
  • ExternalSection
  • Faq
  • FaqCategory
  • Image
  • ImageCategory
  • News
  • NewsCategory
  • Section
  • Tag
  • Text
  • TextCategory
  • Video
  • VideoCategory

Interfaces

  • DocumentInterface
  • EventInterface
  • FaqInterface
  • ImageInterface
  • MetatagInterface
  • NewsInterface
  • SearchableInterface
  • SectionInterface
  • TemplateableInterface
  • TextInterface
  • VideoInterface

Traits

  • MetatagTrait
  • SearchableTrait
  • TemplateableTrait
  • Overview
  • Namespace
  • Class

Class Tag

CMS Tag

Charcoal\Object\Content
Extended by Charcoal\Cms\Tag implements Charcoal\Object\CategoryInterface uses Charcoal\Object\CategoryTrait (not available)
Namespace: Charcoal\Cms
Located at Charcoal/Cms/Tag.php
Methods summary
public
# __construct( array $data = null )

Parameters

$data
The object's data options.
public
# loadCategoryItems( )

Throws

Exception
If function is called.
public Charcoal\Translator\Translation|string|null
# name( )

The tag's name.

The tag's name.

Returns

Charcoal\Translator\Translation|string|null
public mixed
# color( )

The tag's color.

The tag's color.

Returns

mixed
public Charcoal\Cms\Tag
# setName( mixed $name )

Parameters

$name
The name of the tag.

Returns

Charcoal\Cms\Tag
public Charcoal\Cms\Tag
# setColor( string $color )

Parameters

$color
The color in HEX format as a string.

Returns

Charcoal\Cms\Tag
Properties summary
protected Charcoal\Translator\Translation|string|null $name

The tag's name.

The tag's name.

#
protected string $color

The tag's color.

The tag's color.

#
API documentation generated by ApiGen