ViewExecutable::getCacheTags

public ViewExecutable::getCacheTags() Gets the cache tags associated with the executed view. Note: The cache plugin controls the used tags, so you can override it, if needed. Return value string[] An array of cache tags. File core/modules/views/src/ViewExecutable.php, line 1549 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getCacheTags() { $this->initDisplay(); /** @var \Drupal\views\Plugin\views\cache\CachePluginBase $cache */

MenuLinkTree::getCurrentRouteMenuTreeParameters

public MenuLinkTree::getCurrentRouteMenuTreeParameters($menu_name) Gets the link tree parameters for rendering a specific menu. Builds menu link tree parameters that: Expand all links in the active trail based on route being viewed. Expand the descendents of the links in the active trail whose 'expanded' flag is enabled. This only sets the (relatively complex) parameters to achieve the two above goals, but you can still further customize these parameters. Parameters string $menu_name: The me

EntityController::create

public static EntityController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

VocabularyForm::exists

public VocabularyForm::exists($vid) Determines if the vocabulary already exists. Parameters string $vid: The vocabulary ID. Return value bool TRUE if the vocabulary exists, FALSE otherwise. File core/modules/taxonomy/src/VocabularyForm.php, line 151 Class VocabularyForm Base form for vocabulary edit forms. Namespace Drupal\taxonomy Code public function exists($vid) { $action = $this->vocabularyStorage->load($vid); return !empty($action); }

taxonomy_vocabulary_load

taxonomy_vocabulary_load($vid) Return the taxonomy vocabulary entity matching a vocabulary ID. Parameters int $vid: The vocabulary's ID. Return value \Drupal\taxonomy\Entity\Vocabulary|null The taxonomy vocabulary entity, if exists, NULL otherwise. Results are statically cached. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Vocabulary::load(). File core/modules/taxonomy/taxonomy.module, line 409 Enables the organization of content into categories.

taxonomy_field_views_data_alter

taxonomy_field_views_data_alter(array &$data, FieldStorageConfigInterface $field_storage) Implements hook_field_views_data_alter(). Views integration for entity reference fields which reference taxonomy terms. Adds a term relationship to the default field data. See also views_field_default_views_data() File core/modules/taxonomy/taxonomy.views.inc, line 62 Provides views data for taxonomy.module. Code function taxonomy_field_views_data_alter(array &$data, FieldStorageConfigInterface

AccessException

An exception thrown for access errors. Examples could be invalid access callback return values, or invalid access objects being used. Hierarchy class \Drupal\Core\Access\AccessException extends \RuntimeException File core/lib/Drupal/Core/Access/AccessException.php, line 11 Namespace Drupal\Core\Access Members

taxonomy_views_data_alter

taxonomy_views_data_alter(&$data) Implements hook_views_data_alter(). File core/modules/taxonomy/taxonomy.views.inc, line 13 Provides views data for taxonomy.module. Code function taxonomy_views_data_alter(&$data) { $data['node_field_data']['term_node_tid'] = array( 'title' => t('Taxonomy terms on node'), 'help' => t('Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple

Item::getLink

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

ConfigSingleImportForm::$renderer

The renderer service. Type: \Drupal\Core\Render\RendererInterface File core/modules/config/src/Form/ConfigSingleImportForm.php, line 50 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code protected $renderer;