Block::getTheme

public Block::getTheme() Returns the theme ID. Return value string The theme ID for this block instance. Overrides BlockInterface::getTheme File core/modules/block/src/Entity/Block.php, line 178 Class Block Defines a Block configuration entity class. Namespace Drupal\block\Entity Code public function getTheme() { return $this->theme; }

ViewExecutable::setHandlerOption

public ViewExecutable::setHandlerOption($display_id, $type, $id, $option, $value) Sets an option on a handler instance. Use this only if you have just 1 or 2 options to set; if you have many, consider getting the handler instance, adding the options and using set_item() directly. Parameters string $display_id: The machine name of the display. string $type: The type of handler being set. string $id: The ID of the handler being set. string $option: The configuration key for the value being set.

menu_ui_preprocess_block

menu_ui_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/menu_ui/menu_ui.module, line 494 Allows administrators to customize the site's navigation menus. Code function menu_ui_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'menu_ui') { $variables['attributes']['role'] = 'navigation'; } }

StreamWrapperInterface::READ

Wrapper is readable (almost always true). File core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php, line 45 Class StreamWrapperInterface Defines a Drupal stream wrapper extension. Namespace Drupal\Core\StreamWrapper Code const READ = 0x0004;

node_type_update_nodes

node_type_update_nodes($old_id, $new_id) Updates all nodes of one type to be of another type. Parameters string $old_id: The current node type of the nodes. string $new_id: The new node type of the nodes. Return value The number of nodes whose node type field was modified. File core/modules/node/node.module, line 395 The core module that allows content to be submitted to the site. Code function node_type_update_nodes($old_id, $new_id) { return \Drupal::entityManager()->getStorage('node

outside_in_element_info_alter

outside_in_element_info_alter(&$type) Implements hook_element_info_alter(). File core/modules/outside_in/outside_in.module, line 63 Allows configuring blocks and other configuration from the site front-end. Code function outside_in_element_info_alter(&$type) { if (isset($type['page'])) { $type['page']['#theme_wrappers']['outside_in_page_wrapper'] = ['#weight' => -1000]; } }

FileSystemInterface::mkdir

public FileSystemInterface::mkdir($uri, $mode = NULL, $recursive = FALSE, $context = NULL) Creates a directory, optionally creating missing components in the path to the directory. When PHP's mkdir() creates a directory, the requested mode is affected by the process's umask. This function overrides the umask and sets the mode explicitly for all directory components created. @todo Update with open_basedir compatible recursion logic from \Drupal\Component\PhpStorage\FileStorage::ensureDirectory()

outside_in_block_alter

outside_in_block_alter(&$definitions) Implements hook_block_alter(). File core/modules/outside_in/outside_in.module, line 131 Allows configuring blocks and other configuration from the site front-end. Code function outside_in_block_alter(&$definitions) { if (!empty($definitions['system_branding_block'])) { $definitions['system_branding_block']['forms']['offcanvas'] = SystemBrandingOffCanvasForm::class; } // Since menu blocks use derivatives, check the definition ID instead

Filter

Defines an filter annotation object. Plugin Namespace: Plugin\Filter For a working example, see \Drupal\filter\Plugin\Filter\FilterHtml Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\filter\Annotation\Filter See also \Drupal\filter\FilterPluginManager \Drupal\filter\Plugin\FilterInterface \Drupal\filter\Plugin\FilterBase Plugin API Related topics Annotations Annotations for class discovery and metadata description. File core/modules/filter

ViewUI::link

public ViewUI::link($text = NULL, $rel = 'edit-form', array $options = []) Deprecated way of generating a link to the entity. See toLink(). Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value