BaseBlock
getName() and setName()
getName() and setName()<?php
// Returns the block name, e.g., "HeaderBlock"
protected function getName(){
return ucfirst($this->name);
}
protected function setName($value){
$this->name = $value;
}getLabel() and setLabel()
getLabel() and setLabel()<?php
protected function getLabel(){
return $this->label;
}
protected function setLabel($value){
$this->label = $value;
}setProps() and getProps()
setProps() and getProps()handleData()
handleData()Example
Last updated
Was this helpful?