DatabaseStorageExpirable::setWithExpireIfNotExists

DatabaseStorageExpirable::setWithExpireIfNotExists($key, $value, $expire) Sets a value for a given key with a time to live if it does not yet exist. Parameters string $key: The key of the data to store. mixed $value: The data to store. int $expire: The time to live for items, in seconds. Return value bool TRUE if the data was set, or FALSE if it already existed. Overrides KeyValueStoreExpirableInterface::setWithExpireIfNotExists File core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable

ModulesListConfirmForm::getDescription

public ModulesListConfirmForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormBase::getDescription File core/modules/system/src/Form/ModulesListConfirmForm.php, line 99 Class ModulesListConfirmForm Builds a confirmation form for enabling modules with dependencies. Namespace Drupal\system\Form Code public function getDescription() { return $this->t('Would you like to continue with the above?'); }

check_url

check_url($uri) Strips dangerous protocols from a URI and encodes it for output to HTML. Parameters $uri: A plain-text URI that might contain dangerous protocols. Return value string A URI stripped of dangerous protocols and encoded for output to an HTML attribute value. Because it is already encoded, it should not be set as a value within a $attributes array passed to Drupal\Core\Template\Attribute, because Drupal\Core\Template\Attribute expects those values to be plain-text strings. To pass

QueryFactory::getValues

protected QueryFactory::getValues(Config $config, $key, $get_method, array $parts, $start = 0) Finds all the values for a configuration key in a configuration object. Parameters \Drupal\Core\Config\Config $config: The configuration object. string $key: The current key being checked. string $get_method: Which method on the config object to call to get the value. array $parts: All the parts of a configuration key we are checking. int $start: Which position of $parts we are processing. Defaults t

Analyze::getFormKey

public Analyze::getFormKey() Returns the key that represents this form. Return value string The form key used in the URL, e.g., the string 'add-handler' in 'admin/structure/views/%/add-handler/%/%/%'. Overrides ViewsFormInterface::getFormKey File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 16 Class Analyze Displays analysis information for a view. Namespace Drupal\views_ui\Form\Ajax Code public function getFormKey() { return 'analyze'; }

ModulesListConfirmForm::$modules

An associative list of modules to enable or disable. Type: array File core/modules/system/src/Form/ModulesListConfirmForm.php, line 39 Class ModulesListConfirmForm Builds a confirmation form for enabling modules with dependencies. Namespace Drupal\system\Form Code protected $modules = array();

Token::getInfo

public Token::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 Hidden::getInfo File core/lib/Drupal/Core/Render/Element/Token.php, line 22 Class Token Stores token data in a hidden form field. Namespace Drupal\Core\Render\Element Code public function getInfo() {

CsrfTokenGenerator::get

public CsrfTokenGenerator::get($value = '') Generates a token based on $value, the user session, and the private key. The generated token is based on the session of the current user. Normally, anonymous users do not have a session, so the generated token will be different on every page request. To generate a token for users without a session, manually start a session prior to calling this function. Parameters string $value: (optional) An additional value to base the token on. Return value str

VocabularyListBuilder::buildRow

public VocabularyListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides DraggableListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/taxonomy/src/VocabularyListBuilder.php, line 65 Class VocabularyListBuilder Defines a class to bu

DefaultHtmlRouteProvider::$entityTypeManager

The entity type manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php, line 39 Class DefaultHtmlRouteProvider Provides HTML routes for entities. Namespace Drupal\Core\Entity\Routing Code protected $entityTypeManager;