Entity::url

public Entity::url($rel = 'canonical', $options = array()) Gets the public URL for this entity. Parameters string $rel: The link relationship type, for example: canonical or edit-form. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value string The URL for this entity. Overrides EntityInterface::url Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Please use toUrl() instead. See also \Drupal\Core\Enti

MenuLinkTreeInterface::build

public MenuLinkTreeInterface::build(array $tree) Builds a renderable array from a menu tree. The menu item's LI element is given one of the following classes: expanded: The menu item is showing its submenu. collapsed: The menu item has a submenu that is not shown. leaf: The menu item has no submenu. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: A data structure representing the tree, as returned from MenuLinkTreeInterface::load(). Return value array A renderable array. File c

ViewAjaxController::$redirectDestination

The redirect destination. Type: \Drupal\Core\Routing\RedirectDestinationInterface File core/modules/views/src/Controller/ViewAjaxController.php, line 63 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $redirectDestination;

NodeRevisionRevertForm::getConfirmText

public NodeRevisionRevertForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormBase::getConfirmText File core/modules/node/src/Form/NodeRevisionRevertForm.php, line 86 Class NodeRevisionRevertForm Provides a form for reverting a node revision. Namespace Drupal\node\Form Code public function getConfirmText() { return t('Revert'); }

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.

ConfigManagerInterface::getConfigCollectionInfo

public ConfigManagerInterface::getConfigCollectionInfo() Gets available collection information using the event system. Return value \Drupal\Core\Config\ConfigCollectionInfo The object which contains information about the available collections. File core/lib/Drupal/Core/Config/ConfigManagerInterface.php, line 165 Class ConfigManagerInterface Provides an interface for configuration manager. Namespace Drupal\Core\Config Code public function getConfigCollectionInfo();

RegionalForm::getFormId

public RegionalForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/system/src/Form/RegionalForm.php, line 49 Class RegionalForm Configure regional settings for this site. Namespace Drupal\system\Form Code public function getFormId() { return 'system_regional_settings'; }

DiffArray::diffAssocRecursive

public static DiffArray::diffAssocRecursive(array $array1, array $array2) Recursively computes the difference of arrays with additional index check. This is a version of array_diff_assoc() that supports multidimensional arrays. Parameters array $array1: The array to compare from. array $array2: The array to compare to. Return value array Returns an array containing all the values from array1 that are not present in array2. File core/lib/Drupal/Component/Utility/DiffArray.php, line 27 Class

Php::generate

public Php::generate() Generates a Universally Unique IDentifier (UUID). Return value A 16 byte integer represented as a hex string formatted with 4 hyphens. Overrides UuidInterface::generate File core/lib/Drupal/Component/Uuid/Php.php, line 18 Class Php Generates a UUID v4 (RFC 4122 section 4.4) using PHP code. Namespace Drupal\Component\Uuid Code public function generate() { // Obtain a random string of 32 hex characters. $hex = bin2hex(Crypt::randomBytes(16)); // The variabl

BookExport::$nodeStorage

The node storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/book/src/BookExport.php, line 20 Class BookExport Provides methods for exporting book to different formats. Namespace Drupal\book Code protected $nodeStorage;