You are here

class ContentBlock in Open Social 8.9

Same name and namespace in other branches
  1. 8.8 modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
  2. 10.3.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
  3. 10.0.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
  4. 10.1.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
  5. 10.2.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock

Defines a Content Block annotation object.

Hierarchy

Expanded class hierarchy of ContentBlock

1 file declares its use of ContentBlock
ContentBlockManager.php in modules/social_features/social_content_block/src/ContentBlockManager.php
3 classes are annotated with ContentBlock
EventContentBlock in modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php
Provides a content block for events.
GroupContentBlock in modules/social_features/social_content_block/modules/social_group_content_block/src/Plugin/ContentBlock/GroupContentBlock.php
Provides a content block for groups.
TopicContentBlock in modules/social_features/social_content_block/src/Plugin/ContentBlock/TopicContentBlock.php
Provides a content block for topics.

File

modules/social_features/social_content_block/src/Annotation/ContentBlock.php, line 14

Namespace

Drupal\social_content_block\Annotation
View source
class ContentBlock extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The entity type ID.
   *
   * @var string
   */
  public $entityTypeId;

  /**
   * The bundle.
   *
   * @var string
   */
  public $bundle = NULL;

  /**
   * An array of fields.
   *
   * @var array
   */
  public $fields;

}

Members

Namesort descending Modifiers Type Description Overrides
ContentBlock::$bundle public property The bundle.
ContentBlock::$entityTypeId public property The entity type ID.
ContentBlock::$fields public property An array of fields.
ContentBlock::$id public property The plugin ID.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2