MenuController::menuTitle

public MenuController::menuTitle(MenuInterface $menu) Route title callback. Parameters \Drupal\system\MenuInterface $menu: The menu entity. Return value array The menu label as a render array. File core/modules/menu_ui/src/Controller/MenuController.php, line 74 Class MenuController Returns responses for Menu routes. Namespace Drupal\menu_ui\Controller Code public function menuTitle(MenuInterface $menu) { return ['#markup' => $menu->label(), '#allowed_tags' => Xss::getHtmlT

PoHeader::parseHeader

private PoHeader::parseHeader($header) Parses a Gettext Portable Object file header. Parameters string $header: A string containing the complete header. Return value array An associative array of key-value pairs. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 252 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code private function parseHeader($header) { $header_parsed = array(); $lines = array_map('trim', explode("\n", $header)); foreach

content_translation_translate_access

content_translation_translate_access(EntityInterface $entity) Access callback for the translation overview page. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose translation overview should be displayed. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/content_translation/content_translation.module, line 280 Allows entities to be translated into different languages. Code function content_translation_translate_access(EntityIn

UpdateProcessor::parseXml

protected UpdateProcessor::parseXml($raw_xml) Parses the XML of the Drupal release history info files. Parameters string $raw_xml: A raw XML string of available release data for a given project. Return value array Array of parsed data about releases for a given project, or NULL if there was an error parsing the string. File core/modules/update/src/UpdateProcessor.php, line 208 Class UpdateProcessor Process project update information. Namespace Drupal\update Code protected function pa

LocalStream::stream_flush

public LocalStream::stream_flush() Support for fflush(). Return value bool TRUE if data was successfully stored (or there was no data to store). Overrides PhpStreamWrapperInterface::stream_flush See also http://php.net/manual/streamwrapper.stream-flush.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 258 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_flush() { return fflu

Password::valueCallback

public static Password::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 ass

LocalTaskDefault::$active

TRUE if this plugin is forced active for options attributes. Type: bool File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 31 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code protected $active = FALSE;

ModuleHandler::getImplementationInfo

protected ModuleHandler::getImplementationInfo($hook) Provides information about modules' implementations of a hook. Parameters string $hook: The name of the hook (e.g. "help" or "menu"). Return value mixed[] An array whose keys are the names of the modules which are implementing this hook and whose values are either a string identifying a file in which the implementation is to be found, or FALSE, if the implementation is in the module file. File core/lib/Drupal/Core/Extension/ModuleHandler.p

FileTransfer::copyDirectory

public final FileTransfer::copyDirectory($source, $destination) Copies a directory. Parameters string $source: The source path. string $destination: The destination path. File core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 118 Class FileTransfer Defines the base FileTransfer class. Namespace Drupal\Core\FileTransfer Code public final function copyDirectory($source, $destination) { $source = $this->sanitizePath($source); $destination = $this->fixRemotePath($destinat

StringLoader::getCacheKey

public StringLoader::getCacheKey($name) Gets the cache key to use for the cache for a given template name. Parameters string $name The name of the template to load: Return value string The cache key Throws Twig_Error_Loader When $name is not found Overrides Twig_LoaderInterface::getCacheKey File core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 47 Class StringLoader Loads string templates, also known as inline templates. Namespace Drupal\Core\Template\Loader Code public fu