function NodeDateArgumentDefaultPluginBase::getNodeDateValue
Gets a timestamp value from the passed node.
Parameters
\Drupal\node\NodeInterface $node: The node to get the timestamp value from.
Return value
int A timestamp value from a node field.
1 call to NodeDateArgumentDefaultPluginBase::getNodeDateValue()
- NodeDateArgumentDefaultPluginBase::getArgument in core/
modules/ node/ src/ Plugin/ views/ argument_default/ NodeDateArgumentDefaultPluginBase.php - Return the default argument.
2 methods override NodeDateArgumentDefaultPluginBase::getNodeDateValue()
- NodeChanged::getNodeDateValue in core/
modules/ node/ src/ Plugin/ views/ argument_default/ NodeChanged.php - Gets a timestamp value from the passed node.
- NodeCreated::getNodeDateValue in core/
modules/ node/ src/ Plugin/ views/ argument_default/ NodeCreated.php - Gets a timestamp value from the passed node.
File
-
core/
modules/ node/ src/ Plugin/ views/ argument_default/ NodeDateArgumentDefaultPluginBase.php, line 89
Class
- NodeDateArgumentDefaultPluginBase
- Provides a base class for node date values.
Namespace
Drupal\node\Plugin\views\argument_defaultCode
abstract protected function getNodeDateValue(NodeInterface $node) : int;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.