You are here

class Bundle in Little helpers 7.2

Same name and namespace in other branches
  1. 7 src/Field/Bundle.php \Drupal\little_helpers\Field\Bundle

Hierarchy

Expanded class hierarchy of Bundle

File

src/Field/Bundle.php, line 5

Namespace

Drupal\little_helpers\Field
View source
class Bundle implements BundleInterface {
  protected $entity_type;
  protected $bundle;
  public function __construct($entity_type, $bundle) {
    $this->entity_type = $entity_type;
    $this->bundle = $bundle;
  }

  /**
   *
   */
  public function getBundleName() {
    return $this->bundle;
  }

  /**
   *
   */
  public function getEntityType() {
    return $this->entity_type;
  }

}

Members