file_default_scheme

file_default_scheme() Gets the default file stream implementation. Return value string 'public', 'private' or any other file scheme defined as the default. Related topics File interface Common file handling functions. File core/includes/file.inc, line 124 API for handling file uploads and server file management. Code function file_default_scheme() { return \Drupal::config('system.file')->get('default_scheme'); }

EntityDisplayRepositoryInterface::getFormModeOptionsByBundle

public EntityDisplayRepositoryInterface::getFormModeOptionsByBundle($entity_type_id, $bundle) Returns an array of enabled form mode options by bundle. Parameters string $entity_type_id: The entity type whose form mode options should be returned. string $bundle: The name of the bundle. Return value array An array of form mode labels, keyed by the display mode ID. File core/lib/Drupal/Core/Entity/EntityDisplayRepositoryInterface.php, line 94 Class EntityDisplayRepositoryInterface Provides

MenuLinkDefaultForm::$menuParentSelector

The parent form selector service. Type: \Drupal\Core\Menu\MenuParentFormSelectorInterface File core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 43 Class MenuLinkDefaultForm Provides an edit form for static menu links. Namespace Drupal\Core\Menu\Form Code protected $menuParentSelector;

BlockPlaceEventSubscriber::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php, line 28 Class BlockPlaceEventSubscriber Namespace Drupal\block_place\EventSubscriber Code protected $account;

views-mini-pager.html.twig

Default theme implementation for a views mini-pager. Available variables: items: List of pager items. See also template_preprocess_views_mini_pager() File core/modules/views/templates/views-mini-pager.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

Radios::valueCallback

public static Radios::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assig

MenuTreeStorage::doSave

protected MenuTreeStorage::doSave(array $link) Saves a link without clearing caches. Parameters array $link: A definition, according to $definitionFields, for a \Drupal\Core\Menu\MenuLinkInterface plugin. Return value array The menu names affected by the save operation. This will be one menu name if the link is saved to the sane menu, or two if it is saved to a new menu. Throws \Exception Thrown if the storage back-end does not exist and could not be created. \Drupal\Component\Plugin\Excepti

ChainedFastBackend::setMultiple

public ChainedFastBackend::setMultiple(array $items) Store multiple items in the persistent cache. Parameters array $items: An array of cache items, keyed by cid. In the form: $items = array( $cid => array( // Required, will be automatically serialized if not a string. 'data' => $data, // Optional, defaults to CacheBackendInterface::CACHE_PERMANENT. 'expire' => CacheBackendInterface::CACHE_PERMANENT, // (optional) The cache tags for this item, see C

MenuLinkManager::countMenuLinks

public MenuLinkManager::countMenuLinks($menu_name = NULL) Counts the total number of menu links. Parameters string $menu_name: (optional) The menu name to count by. Defaults to all menus. Return value int The number of menu links in the named menu, or in all menus if the menu name is NULL. Overrides MenuLinkManagerInterface::countMenuLinks File core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 309 Class MenuLinkManager Manages discovery, instantiation, and tree building of menu link pl

YamlDirectoryDiscovery::$idKey

The key contained in the discovered data that identifies it. Type: string File core/lib/Drupal/Component/Discovery/YamlDirectoryDiscovery.php, line 42 Class YamlDirectoryDiscovery Discovers multiple YAML files in a set of directories. Namespace Drupal\Component\Discovery Code protected $idKey;