You are here

NodePostDate.php in Display Suite 8.4

File

src/Plugin/DsField/Node/NodePostDate.php
View source
<?php

namespace Drupal\ds\Plugin\DsField\Node;

use Drupal\ds\Plugin\DsField\Date;

/**
 * Plugin that renders the post date of a node.
 *
 * @DsField(
 *   id = "node_post_date",
 *   title = @Translation("Post date"),
 *   entity_type = "node",
 *   provider = "node"
 * )
 */
class NodePostDate extends Date {

  /**
   * {@inheritdoc}
   */
  public function getRenderKey() {
    return 'created';
  }

}

Classes

Namesort descending Description
NodePostDate Plugin that renders the post date of a node.