class NodeCreated

Provides the created time of the current node as default argument value.

Attributes

#[ViewsArgumentDefault(id: 'node_created', title: new TranslatableMarkup("Current node 'created' time"))]

Hierarchy

Expanded class hierarchy of NodeCreated

File

core/modules/node/src/Plugin/views/argument_default/NodeCreated.php, line 12

Namespace

Drupal\node\Plugin\views\argument_default
View source
class NodeCreated extends NodeDateArgumentDefaultPluginBase {
  
  /**
   * {@inheritdoc}
   */
  protected function getNodeDateValue(NodeInterface $node) : int {
    return $node->getCreatedTime();
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.