luya\console\commands\BlockController::setBlockName PHP Method

setBlockName() public method

Setter method for $blockName, ensure the correct block name.
public setBlockName ( string $name )
$name string The name of the block.
    public function setBlockName($name)
    {
        if (!StringHelper::endsWith($name, 'Block')) {
            $name .= 'Block';
        }
        $this->_blockName = Inflector::camelize($name);
    }