EntityOwnerInterface::getOwnerId

public EntityOwnerInterface::getOwnerId() Returns the entity owner's user ID. Return value int|null The owner user ID, or NULL in case the user ID field has not been set on the entity. File core/modules/user/src/EntityOwnerInterface.php, line 40 Class EntityOwnerInterface Defines a common interface for entities that have an owner. Namespace Drupal\user Code public function getOwnerId();

filter_get_formats_by_role

filter_get_formats_by_role($rid) Retrieves a list of text formats that are allowed for a given role. Parameters string $rid: The user role ID to retrieve text formats for. Return value \Drupal\filter\FilterFormatInterface[] An array of text format objects that are allowed for the role, keyed by the text format ID and ordered by weight. File core/modules/filter/filter.module, line 168 Framework for handling the filtering of content. Code function filter_get_formats_by_role($rid) { $formats

UpdateKernel::setupRequestMatch

protected UpdateKernel::setupRequestMatch(Request $request) Set up the request with fake routing data for update.php. This fake routing data is needed in order to make batch API work properly. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. File core/lib/Drupal/Core/Update/UpdateKernel.php, line 150 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code protected function setupRequ

BasicAuth::__construct

public BasicAuth::__construct(ConfigFactoryInterface $config_factory, UserAuthInterface $user_auth, FloodInterface $flood, EntityManagerInterface $entity_manager) Constructs a HTTP basic authentication provider object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\user\UserAuthInterface $user_auth: The user authentication service. \Drupal\Core\Flood\FloodInterface $flood: The flood service. \Drupal\Core\Entity\EntityManagerInterface $entity_

block_content.module

Allows the creation of custom blocks through the user interface. File core/modules/block_content/block_content.module Functions Name Description block_content_add_body_field Adds the default body field to a custom block type. block_content_entity_type_alter Implements hook_entity_type_alter(). block_content_help Implements hook_help(). block_content_theme Implements hook_theme().

drupal_render

drupal_render(&$elements, $is_recursive_call = FALSE) Renders HTML given a structured array tree. Deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the 'renderer' service instead. See also \Drupal\Core\Render\RendererInterface::render() File core/includes/common.inc, line 869 Common functions that many Drupal modules will need to reference. Code function drupal_render(&$elements, $is_recursive_call = FALSE) { return \Drupal::service('renderer')->render($

UpdateManager::$keyValueStore

The key/value store. Type: \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface File core/modules/update/src/UpdateManager.php, line 54 Class UpdateManager Default implementation of UpdateManagerInterface. Namespace Drupal\update Code protected $keyValueStore;

ConfigTranslationController::$renderer

The renderer. Type: \Drupal\Core\Render\RendererInterface File core/modules/config_translation/src/Controller/ConfigTranslationController.php, line 74 Class ConfigTranslationController Provides page callbacks for the configuration translation interface. Namespace Drupal\config_translation\Controller Code protected $renderer;

EntityDataDefinitionInterface::setEntityTypeId

public EntityDataDefinitionInterface::setEntityTypeId($entity_type_id) Sets the entity type ID. Parameters string $entity_type_id: The entity type to set. Return value $this File core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php, line 28 Class EntityDataDefinitionInterface Interface for typed data entity definitions. Namespace Drupal\Core\Entity\TypedData Code public function setEntityTypeId($entity_type_id);

ArrayElement::toArray

public ArrayElement::toArray() Returns an array of all property values. Return value array An array of property values, keyed by property name. Overrides TypedConfigInterface::toArray File core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 98 Class ArrayElement Defines a generic configuration element that contains multiple properties. Namespace Drupal\Core\Config\Schema Code public function toArray() { return isset($this->value) ? $this->value : array(); }