public function getHandle()
    {
        if (!isset($this->handle) && $this->fieldId) {
            $field = Craft::$app->fields->getFieldById($this->fieldId);
            
            foreach ($field->getBlockTypes() as $index => $blockType) {
                if ($blockType->id == $this->id) {
                    $this->handle = $field->handle . '-' . $index;
                    break;
                }
            }
        }

        return $this->handle;
    }
public function getHandle()
    {
        if (!isset($this->handle) && $this->fieldId) {
            $field = Craft::$app->fields->getFieldById($this->fieldId);
            
            foreach ($field->getBlockTypes() as $index => $blockType) {
                if ($blockType->id == $this->id) {
                    $this->handle = $field->handle . '-' . $index;
                    break;
                }
            }
        }

        return $this->handle;
    }
public function getHandle ( ) { if ( ! isset ( $ this -> handle ) && $ this -> fieldId ) { $ field = Craft :: $ app -> fields -> getFieldById ( $ this -> fieldId ) ; foreach ( $ field -> getBlockTypes ( ) as $ index => $ blockType ) { if ( $ blockType -> id == $ this -> id ) { $ this -> handle = $ field -> handle . '-' . $ index ; break ; } } } return $ this -> handle ; }
Fake handle for easier integrations.

@return string
Fake handle for easier integrations .