hide

hide(&$element) Hides an element from later rendering. The first time render() or drupal_render() is called on an element tree, as each element in the tree is rendered, it is marked with a #printed flag and the rendered children of the element are cached. Subsequent calls to render() or drupal_render() will not traverse the child tree of this element again: they will just use the cached children. So if you want to hide an element, be sure to call hide() on the element before its parent tree

filter_default_format

filter_default_format(AccountInterface $account = NULL) Returns the ID of the default text format for a particular user. The default text format is the first available format that the user is allowed to access, when the formats are ordered by weight. It should generally be used as a default choice when presenting the user with a list of possible text formats (for example, in a node creation form). Conversely, when existing content that does not have an assigned text format needs to be filtered

ConfigDependencies::create

public static ConfigDependencies::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servi

OpenDialogCommand::$dialogOptions

Stores dialog-specific options passed directly to jQuery UI dialogs. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. Type: array File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 45 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code protected $dialogOptions;

FormStateInterface::setSubmitHandlers

public FormStateInterface::setSubmitHandlers(array $submit_handlers) Sets the submit handlers. Parameters array $submit_handlers: An array of submit handlers. Return value $this File core/lib/Drupal/Core/Form/FormStateInterface.php, line 929 Class FormStateInterface Provides an interface for an object containing the current state of a form. Namespace Drupal\Core\Form Code public function setSubmitHandlers(array $submit_handlers);

image_field_storage_config_update

image_field_storage_config_update(FieldStorageConfigInterface $field_storage) Implements hook_ENTITY_TYPE_update() for 'field_storage_config'. File core/modules/image/image.module, line 377 Exposes global functionality for creating image styles. Code function image_field_storage_config_update(FieldStorageConfigInterface $field_storage) { if ($field_storage->getType() != 'image') { // Only act on image fields. return; } $prior_field_storage = $field_storage->original; /

ModuleHandlerInterface::moduleExists

public ModuleHandlerInterface::moduleExists($module) Determines whether a given module is enabled. Parameters string $module: The name of the module (without the .module extension). Return value bool TRUE if the module is both installed and enabled. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 126 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function moduleExists($module);

BlockContentForm::create

public static BlockContentForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

template_preprocess_region

template_preprocess_region(&$variables) Prepares variables for region templates. Default template: region.html.twig. Prepares the values passed to the theme_region function to be passed into a pluggable template engine. Uses the region name to generate a template file suggestions. Parameters array $variables: An associative array containing: elements: An associative array containing properties of the region. File core/includes/theme.inc, line 1509 The theme system, which controls the ou

QueryBase::$entityType

Information about the entity type. Type: \Drupal\Core\Entity\EntityTypeInterface File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 25 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code protected $entityType;