LocalReadOnlyStream::mkdir

public LocalReadOnlyStream::mkdir($uri, $mode, $options) Support for mkdir(). Directory will never be created as this is a read-only stream wrapper. Parameters string $uri: A string containing the URI to the directory to create. int $mode: Permission flags - see mkdir(). int $options: A bit mask of STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE. Return value bool FALSE as directory will never be created. Overrides LocalStream::mkdir See also http://php.net/manual/streamwrapper.mkdir.php Fil

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

Language::isLocked

public Language::isLocked() Returns whether this language is locked. Return value bool Whether the language is locked or not. Overrides LanguageInterface::isLocked File core/lib/Drupal/Core/Language/Language.php, line 136 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code public function isLocked() { return (bool) $this->locked; }

DateTimePlus::prepareTime

protected DateTimePlus::prepareTime($time) Prepares the input time value. Changes the input value before trying to use it, if necessary. Can be overridden to handle special cases. Parameters mixed $time: An input value, which could be a timestamp, a string, or an array of date parts. Return value mixed The massaged time. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 373 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Component\Datetime Code protected function p

SetFormCommand::render

public SetFormCommand::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/modules/views_ui/src/Ajax/SetFormCommand.php, line 34 Class SetFormCommand Provides an AJAX command for setting a form submit URL in modal forms. Namespace Drupal\views_ui\Ajax Code public function render() { return array( 'command' => 'viewsSetForm', 'url' => $this->url, ); }

DbLog::DEDICATED_DBLOG_CONNECTION_TARGET

The dedicated database connection target to use for log entries. File core/modules/dblog/src/Logger/DbLog.php, line 24 Class DbLog Logs events in the watchdog database table. Namespace Drupal\dblog\Logger Code const DEDICATED_DBLOG_CONNECTION_TARGET = 'dedicated_dblog';

FieldUninstallValidator::getFieldTypeLabel

protected FieldUninstallValidator::getFieldTypeLabel($field_type) Returns the label for a specified field type. Parameters string $field_type: The field type. Return value string The field type label. File core/modules/field/src/FieldUninstallValidator.php, line 98 Class FieldUninstallValidator Prevents uninstallation of modules providing active field storage. Namespace Drupal\field Code protected function getFieldTypeLabel($field_type) { return $this->fieldTypeManager->getDe

DateTimePlus::getErrors

public DateTimePlus::getErrors() Gets error messages. Public function to return the error messages. Return value array An array of errors encountered when creating this date. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 474 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Component\Datetime Code public function getErrors() { return $this->errors; }

ImageInterface::desaturate

public ImageInterface::desaturate() Converts an image to grayscale. Return value bool TRUE on success, FALSE on failure. File core/lib/Drupal/Core/Image/ImageInterface.php, line 223 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function desaturate();

Config::__construct

public Config::__construct($name, StorageInterface $storage, EventDispatcherInterface $event_dispatcher, TypedConfigManagerInterface $typed_config) Constructs a configuration object. Parameters string $name: The name of the configuration object being constructed. \Drupal\Core\Config\StorageInterface $storage: A storage object to use for reading and writing the configuration data. \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: An event dispatcher instance to use