AccountSettingsForm::create

public static AccountSettingsForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

PoItem::$_source

The source string or array of strings if it has plurals. Type: string or array See also $_plural File core/lib/Drupal/Component/Gettext/PoItem.php, line 33 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code private $_source;

LocaleConfigSubscriber::__construct

public LocaleConfigSubscriber::__construct(ConfigFactoryInterface $config_factory, LocaleConfigManager $locale_config_manager) Constructs a LocaleConfigSubscriber. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. \Drupal\locale\LocaleConfigManager $locale_config_manager: The typed configuration manager. File core/modules/locale/src/LocaleConfigSubscriber.php, line 57 Class LocaleConfigSubscriber Updates strings translation when configuratio

forum_help

forum_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/forum/forum.module, line 21 Provides discussion forums. Code function forum_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.forum': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Forum module lets you create threaded discussion forums with functionality similar to other mess

RegisterSerializationClassesCompilerPass::process

public RegisterSerializationClassesCompilerPass::process(ContainerBuilder $container) Adds services to the Serializer. Parameters \Symfony\Component\DependencyInjection\ContainerBuilder $container: The container to process. Overrides CompilerPassInterface::process File core/modules/serialization/src/RegisterSerializationClassesCompilerPass.php, line 20 Class RegisterSerializationClassesCompilerPass Adds services tagged 'normalizer' and 'encoder' to the Serializer. Namespace Drupal\seri

SerializationServiceProvider

Serialization dependency injection container. Hierarchy class \Drupal\serialization\SerializationServiceProvider implements ServiceProviderInterface File core/modules/serialization/src/SerializationServiceProvider.php, line 11 Namespace Drupal\serialization Members Name Modifiers Type Description SerializationServiceProvider::register public function Registers services to the container. Overrides ServiceProviderInterface::register

FieldConfigBase::$default_value

Default field value. The default value is used when an entity is created, either: through an entity creation form; the form elements for the field are prepopulated with the default value. through direct API calls (i.e. $entity->save()); the default value is added if the $entity object provides no explicit entry (actual values or "the field is empty") for the field. The default value is expressed as a numerically indexed array of items, each item being an array of key/value pairs matching t

QueryInterface::allRevisions

public QueryInterface::allRevisions() Queries all the revisions. Return value $this File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 257 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function allRevisions();

AccountProxy::getLastAccessedTime

public AccountProxy::getLastAccessedTime() The timestamp when the account last accessed the site. A value of 0 means the user has never accessed the site. Return value int Timestamp of the last access. Overrides AccountInterface::getLastAccessedTime File core/lib/Drupal/Core/Session/AccountProxy.php, line 151 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function getLastAccessedTime() { return $this->getAccount()->ge

Views::getApplicableViews

public static Views::getApplicableViews($type) Return a list of all view IDs and display IDs that have a particular setting in their display's plugin settings. array( array($view_id, $display_id), array($view_id, $display_id), ); Parameters string $type: A flag from the display plugin definitions (e.g, 'uses_menu_links'). Return value array A list of arrays containing the $view_id and $display_id. File core/modules/views/src/Views.php, line 205 Class Views Static service container w