ContextualLinkInterface

Defines a contextual link plugin. Contextual links by default are in the module_name.links.contextual.yml file. These YAML files contain a list of contextual link plugin definitions, keyed by the plugin ID. Each definition must define a route_name and a group and might define title, options, and weight. See the getter methods on this interface for an explanation of each. Hierarchy interface \Drupal\Core\Menu\ContextualLinkInterface Related topics Menu system Define the navigation menus, loca

Role::$id

The machine name of this role. Type: string File core/modules/user/src/Entity/Role.php, line 54 Class Role Defines the user role entity class. Namespace Drupal\user\Entity Code protected $id;

REQUIREMENT_OK

Requirement severity -- Requirement successfully met. File core/includes/install.inc, line 24 API functions for installing modules and themes. Code const REQUIREMENT_OK = 0;

template_preprocess_details

template_preprocess_details(&$variables) Prepares variables for details element templates. Default template: details.html.twig. Parameters array $variables: An associative array containing: element: An associative array containing the properties of the element. Properties used: #attributes, #children, #open, #description, #id, #title, #value, #optional. File core/includes/form.inc, line 241 Functions for form and batch generation and processing. Code function template_preprocess_detai

DRUPAL_OPTIONAL

Optional option on forms and settings File core/modules/system/system.module, line 54 Configuration system that lets administrators modify the workings of the site. Code const DRUPAL_OPTIONAL = 1;

DateFormatter::formatDiff

public DateFormatter::formatDiff($from, $to, $options = array()) Formats a time interval between two timestamps. Parameters int $from: A UNIX timestamp, defining the from date and time. int $to: A UNIX timestamp, defining the to date and time. array $options: (optional) An associative array with additional options. The following keys can be used: granularity: An integer value that signals how many different units to display in the string. Defaults to 2. langcode: The language code for the la

FormState::$invalidToken

If set to TRUE the form will skip calling form element value callbacks, except for a select list of callbacks provided by Drupal core that are known to be safe. This property is uncacheable. Type: bool See also self::setInvalidToken() File core/lib/Drupal/Core/Form/FormState.php, line 115 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $invalidToken = FALSE;

ConfigFormBaseTrait::config

protected ConfigFormBaseTrait::config($name) Retrieves a configuration object. Parameters string $name: The name of the configuration object to retrieve. The name corresponds to a configuration file. For \Drupal::config('book.admin') , the config object returned will contain the contents of book.admin configuration file. Return value \Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig An editable configuration object if the given name is listed in the getEditableConfigNames() met

FormState::setAnyErrors

protected static FormState::setAnyErrors($errors = TRUE) Sets the global status of errors. Parameters bool $errors: TRUE if any form has any errors, FALSE otherwise. File core/lib/Drupal/Core/Form/FormState.php, line 1041 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected static function setAnyErrors($errors = TRUE) { static::$anyErrors = $errors; }

GeneratedUrl::$generatedUrl

The string value of the URL. Type: string File core/lib/Drupal/Core/GeneratedUrl.php, line 20 Class GeneratedUrl Used to return generated URLs, along with associated bubbleable metadata. Namespace Drupal\Core Code protected $generatedUrl = '';