Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why not just take name as part of $settings #5

Open
tangrufus opened this issue Feb 25, 2019 · 1 comment
Open

why not just take name as part of $settings #5

tangrufus opened this issue Feb 25, 2019 · 1 comment

Comments

@tangrufus
Copy link
Contributor

$reflection = new \ReflectionClass($this);
$block_path = $reflection->getFileName();
$directory_path = dirname($block_path);
$this->name = Util::camelToKebab(basename($block_path, '.php'));

@codepuncher
Copy link
Member

Can allow users to override that. Was thinking it would be easier like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants