Vocabulary::getHierarchy

public Vocabulary::getHierarchy() Returns the vocabulary hierarchy. Return value int The vocabulary hierarchy. Overrides VocabularyInterface::getHierarchy File core/modules/taxonomy/src/Entity/Vocabulary.php, line 94 Class Vocabulary Defines the taxonomy vocabulary entity. Namespace Drupal\taxonomy\Entity Code public function getHierarchy() { return $this->hierarchy; }

AccountInterface::getEmail

public AccountInterface::getEmail() Returns the email address of this account. Return value string The email address. File core/lib/Drupal/Core/Session/AccountInterface.php, line 154 Class AccountInterface Defines an account interface which represents the current user. Namespace Drupal\Core\Session Code public function getEmail();

ConstraintViolationBuilder::setCode

public ConstraintViolationBuilder::setCode($code) Sets the violation code. Parameters string|null $code The violation code: Return value ConstraintViolationBuilderInterface This builder Overrides ConstraintViolationBuilderInterface::setCode File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 196 Class ConstraintViolationBuilder Defines a constraint violation builder for the Typed Data validator. Namespace Drupal\Core\TypedData\Validation Code public fu

MenuLinkResetForm::$menuLinkManager

The menu link manager. Type: \Drupal\Core\Menu\MenuLinkManagerInterface File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 23 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code protected $menuLinkManager;

InsertTrait::count

public InsertTrait::count() File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 182 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code public function count() { return count($this->insertValues); }

Zip::remove

public Zip::remove($file_path) Removes the specified file from the archive. Parameters string $path: The file name relative to the root of the archive to remove. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. Overrides ArchiverInterface::remove File core/lib/Drupal/Core/Archiver/Zip.php, line 48 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code public function remove($file_path) { $this->zip->deleteName($f

Condition::$category

The category under which the condition should listed in the UI. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/lib/Drupal/Core/Condition/Annotation/Condition.php, line 67 Class Condition Defines a condition plugin annotation object. Namespace Drupal\Core\Condition\Annotation Code public $category;

DateHelper::dayOfWeekName

public static DateHelper::dayOfWeekName($date = NULL, $abbr = TRUE) Returns translated name of the day of week for a given date. Parameters mixed $date: (optional) A DrupalDateTime object or a date string. Defaults to NULL, which means use the current date. string $abbr: (optional) Whether to return the abbreviated name for that day. Defaults to TRUE. Return value string The name of the day in the week for that date. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 524 Class DateHe

hook_token_info_alter

hook_token_info_alter(&$data) Alter the metadata about available placeholder tokens and token types. Parameters $data: The associative array of token definitions from hook_token_info(). See also hook_token_info() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/lib/Drupal/Core/Utility/token.api.php, line 265 Hooks related to the Token system. Code function hook_token_info_alter(&$data) { // Modify description of node tokens for our site.

Connection::databaseType

abstract public Connection::databaseType() Returns the name of the PDO driver for this connection. File core/lib/Drupal/Core/Database/Connection.php, line 1306 Class Connection Base Database API class. Namespace Drupal\Core\Database Code abstract public function databaseType();