protected function checkLabel($label)
    {
        if ($label instanceof ElementInterface) {
            return $label;
        }

        return $this->createLabel($this->translate($label));
    }
protected function checkLabel($label)
    {
        if ($label instanceof ElementInterface) {
            return $label;
        }

        return $this->createLabel($this->translate($label));
    }
protected function checkLabel ( $ label ) { if ( $ label instanceof ElementInterface ) { return $ label ; } return $ this -> createLabel ( $ this -> translate ( $ label ) ) ; }
Check provided label

@param string|ElementInterface $label

@return ElementInterface|Label
Check provided label