Item::getDescription

public Item::getDescription() Returns the body of the feed item. Return value string The body of the feed item. Overrides ItemInterface::getDescription File core/modules/aggregator/src/Entity/Item.php, line 174 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getDescription() { return $this->get('description')->value; }

Item::getCacheTagsToInvalidate

public Item::getCacheTagsToInvalidate() Returns the cache tags that should be used to invalidate caches. This will not return additional cache tags added through addCacheTags(). Return value string[] Set of cache tags. Overrides Entity::getCacheTagsToInvalidate See also \Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags() \Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags() File core/modules/aggregator/src/Entity/Item.php, line 231 Class Item Defines the ag

Item::getAuthor

public Item::getAuthor() Returns the author of the feed item. Return value string The author of the feed item. Overrides ItemInterface::getAuthor File core/modules/aggregator/src/Entity/Item.php, line 160 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getAuthor() { return $this->get('author')->value; }

Item::buildUri

public static Item::buildUri(ItemInterface $item) Entity URI callback. File core/modules/aggregator/src/Entity/Item.php, line 239 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public static function buildUri(ItemInterface $item) { return Url::fromUri($item->getLink()); }

Item::baseFieldDefinitions

public static Item::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho

item-list.html.twig

Default theme implementation for an item list. Available variables: items: A list of items. Each item contains: attributes: HTML attributes to be applied to each list item. value: The content of the list element. title: The title of the list. list_type: The tag for list element ("ul" or "ol"). wrapper_attributes: HTML attributes to be applied to the list wrapper. attributes: HTML attributes to be applied to the list. empty: A message to display when there are no items. Allowed value is

Item

Defines the aggregator item entity class. Plugin annotation @ContentEntityType( id = "aggregator_item", label = @Translation("Aggregator feed item"), handlers = { "storage" = "Drupal\aggregator\ItemStorage", "storage_schema" = "Drupal\aggregator\ItemStorageSchema", "view_builder" = "Drupal\aggregator\ItemViewBuilder", "access" = "Drupal\aggregator\FeedAccessControlHandler", "views_data" = "Drupal\aggregator\AggregatorItemViewsData" }, uri_callback = "Drupal\aggrega

Item

Provides a display-only form element with an optional title and description. Note: since this is a read-only field, setting the #required property will do nothing except theme the form element to look as if it were actually required (i.e. by placing a red star next to the #title). Plugin annotation @FormElement("item") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerial

InvokeCommand::__construct

public InvokeCommand::__construct($selector, $method, array $arguments = array()) Constructs an InvokeCommand object. Parameters string $selector: A jQuery selector. string $method: The name of a jQuery method to invoke. array $arguments: An optional array of arguments to pass to the method. File core/lib/Drupal/Core/Ajax/InvokeCommand.php, line 54 Class InvokeCommand AJAX command for invoking an arbitrary jQuery method. Namespace Drupal\Core\Ajax Code public function __construct($sel

InvokeCommand::render

public InvokeCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/InvokeCommand.php, line 63 Class InvokeCommand AJAX command for invoking an arbitrary jQuery method. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'invoke', 'selector' => $this->selector, 'method' => $this->method, 'args' => $this->arguments, ); }