DependencyTrait::addDependency

protected DependencyTrait::addDependency($type, $name) Adds a dependency. Parameters string $type: Type of dependency being added: 'module', 'theme', 'config', 'content'. string $name: If $type is 'module' or 'theme', the name of the module or theme. If $type is 'config' or 'content', the result of EntityInterface::getConfigDependencyName(). Return value $this See also \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() File core/lib/Drupal/Core/Entity/DependencyTrait.php, line 31

NegotiationUrlForm::validateForm

public NegotiationUrlForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/language/src/Form/NegotiationUrlForm.php, line 136 Class NegotiationUrlForm Configure the URL language negotiation method for this site. Namespace Drupal\langua

TermStorage::nodeCount

public TermStorage::nodeCount($vid) Count the number of nodes in a given vocabulary ID. Parameters string $vid: Vocabulary ID to retrieve terms for. Return value int A count of the nodes in a given vocabulary ID. Overrides TermStorageInterface::nodeCount File core/modules/taxonomy/src/TermStorage.php, line 293 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code public function nodeCount($vid) { $query = $this->database->select('taxo

Details::getInfo

public Details::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Details.php, line 42 Class Details Provides a render element for a details element, similar to a fieldset. Namespace Drupal\Core\Rend

TermStorage::$children

Array of child terms keyed by parent term ID. Type: array File core/modules/taxonomy/src/TermStorage.php, line 32 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code protected $children = array();

DraggableListBuilder::$entities

The entities being listed. Type: \Drupal\Core\Entity\EntityInterface[] File core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 28 Class DraggableListBuilder Defines a class to build a draggable listing of configuration entities. Namespace Drupal\Core\Config\Entity Code protected $entities = array();

ConfigEntityMapper::getTypeName

public ConfigEntityMapper::getTypeName() Returns the name of the type of data the mapper encapsulates. Return value string The name of the type of data the mapper encapsulates. Overrides ConfigNamesMapper::getTypeName File core/modules/config_translation/src/ConfigEntityMapper.php, line 206 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getTypeName() { $entity_type_info = $this->entityManager->

QueryFactory::$connection

The database connection to use. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php, line 23 Class QueryFactory Factory class creating entity query objects for the SQL backend. Namespace Drupal\Core\Entity\Query\Sql Code protected $connection;

Drupal::linkGenerator

public static Drupal::linkGenerator() Returns the link generator service. Return value \Drupal\Core\Utility\LinkGeneratorInterface File core/lib/Drupal.php, line 551 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function linkGenerator() { return static::getContainer()->get('link_generator'); }

ExecutionContext::getPropertyPath

public ExecutionContext::getPropertyPath($sub_path = '') File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 242 Class ExecutionContext Defines an execution context class. Namespace Drupal\Core\TypedData\Validation Code public function getPropertyPath($sub_path = '') { return PropertyPath::append($this->propertyPath, $sub_path); }