Fieldmanager_Field::has_proto PHP Method

has_proto() protected method

Are we in the middle of generating a prototype element for repeatable fields?
protected has_proto ( ) : boolean
return boolean
    protected function has_proto()
    {
        if ($this->is_proto) {
            return True;
        }
        if ($this->parent) {
            return $this->parent->has_proto();
        }
        return False;
    }

Usage Example

 /**
  * Are we in the middle of generating a prototype element for repeatable fields?
  * @return boolean
  */
 protected function has_proto()
 {
     if ($this->is_proto) {
         return True;
     }
     if ($this->parent) {
         return $this->parent->has_proto();
     }
     return False;
 }