You are here

FieldableEdgeEntityInterface.php in Apigee Edge 8

File

src/Entity/FieldableEdgeEntityInterface.php
View source
<?php

/**
 * Copyright 2018 Google Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */
namespace Drupal\apigee_edge\Entity;

use Drupal\Core\Entity\FieldableEntityInterface as DrupalFieldableEntityInterface;

/**
 * Base interface for those Apigee Edge entities that are fieldable.
 *
 * Fieldable means that they have field UI support and they expose their
 * properties as base fields.
 *
 * According to DrupalFieldableEntityInterface's description \IteratorAggregate
 * should be implemented.
 */
interface FieldableEdgeEntityInterface extends EdgeEntityInterface, \IteratorAggregate, DrupalFieldableEntityInterface {

  /**
   * Updates the property value on an entity by field name.
   *
   * @param string $field_name
   *   Name of the field (which usually the name of the property.)
   * @param mixed $value
   *   Value of the field.
   */
  public function setPropertyValue(string $field_name, $value) : void;

}

Interfaces

Namesort descending Description
FieldableEdgeEntityInterface Base interface for those Apigee Edge entities that are fieldable.