tamper-8.x-1.x-dev/src/TamperItem.php

src/TamperItem.php
<?php

namespace Drupal\tamper;

/**
 * Defines a single tamper item class.
 */
#[\AllowDynamicProperties]
class TamperItem implements TamperableItemInterface {

  /**
   * {@inheritdoc}
   */
  public function getSource() {
    return get_object_vars($this);
  }

  /**
   * {@inheritdoc}
   */
  public function getSourceProperty($property) {
    return $this->$property ?? NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function setSourceProperty($property, $data) {
    $this->$property = $data;
    return $this;
  }

}

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

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