public function Rss::__construct in Drupal 8
Constructs the Rss object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.
Overrides RssPluginBase::__construct
File
- core/
modules/ node/ src/ Plugin/ views/ row/ Rss.php, line 59
Class
- Rss
- Plugin which performs a node_view on the resulting object and formats it as an RSS item.
Namespace
Drupal\node\Plugin\views\rowCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityDisplayRepositoryInterface $entity_display_repository = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $entity_display_repository);
$this->nodeStorage = $entity_type_manager
->getStorage('node');
}