entity_generic-8.x-3.x-dev/src/Generic/EntityDescriptionTrait.php

src/Generic/EntityDescriptionTrait.php
<?php

namespace Drupal\entity_generic\Generic;

/**
 * Implements owner functionality.
 */
trait EntityDescriptionTrait {

  /**
   * A description.
   *
   * @var string
   */
  protected $description;

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return $this->description;
  }

  /**
   * {@inheritdoc}
   */
  public function setDescription($description) {
    return $this->set('description', $description);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc