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;

ForumManagerInterface::unreadTopics

public ForumManagerInterface::unreadTopics($term, $uid) Calculates the number of new posts in a forum that the user has not yet read. Nodes are new if they are newer than HISTORY_READ_LIMIT. Parameters int $term: The term ID of the forum. int $uid: The user ID. Return value The number of new posts in the forum that have not been read by the user. File core/modules/forum/src/ForumManagerInterface.php, line 92 Class ForumManagerInterface Provides forum manager interface. Namespace Drupa

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

PermissionHandler::getYamlDiscovery

protected PermissionHandler::getYamlDiscovery() Gets the YAML discovery. Return value \Drupal\Core\Discovery\YamlDiscovery The YAML discovery. File core/modules/user/src/PermissionHandler.php, line 97 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected function getYamlDiscovery() { if (!isset($this->yamlDiscovery)) { $this->yamlDiscovery = new YamlDiscovery('permissions', $this->moduleHandler->getModuleD

CommentAdminOverview::getFormId

public CommentAdminOverview::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/comment/src/Form/CommentAdminOverview.php, line 82 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code public function getFormId() { return 'comment_admin_overview'; }

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

Link::__construct

public Link::__construct($text, Url $url) Constructs a new Link object. Parameters string $text: The text of the link. \Drupal\Core\Url $url: The url object. File core/lib/Drupal/Core/Link.php, line 40 Class Link Defines an object that holds information about a link. Namespace Drupal\Core Code public function __construct($text, Url $url) { $this->text = $text; $this->url = $url; }

SelectExtender::forUpdate

public SelectExtender::forUpdate($set = TRUE) Add FOR UPDATE to the query. FOR UPDATE prevents the rows retrieved by the SELECT statement from being modified or deleted by other transactions until the current transaction ends. Other transactions that attempt UPDATE, DELETE, or SELECT FOR UPDATE of these rows will be blocked until the current transaction ends. Parameters $set: IF TRUE, FOR UPDATE will be added to the query, if FALSE then it won't. Return value \Drupal\Core\Database\Query\Condi

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();