getName() public method

Returns the name of the field.
public getName ( ) : string
return string
コード例 #1
0
ファイル: AbstractListBuilder.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function addGroupBy(FieldDescriptorInterface $fieldDescriptor)
 {
     $this->groupByFields[$fieldDescriptor->getName()] = $fieldDescriptor;
 }
コード例 #2
0
ファイル: FieldDescriptor.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function compare(FieldDescriptorInterface $other)
 {
     if (!$other instanceof self) {
         return false;
     }
     return $this->getName() === $other->getName() && $this->getType() === $other->getType();
 }