Skip to content

OPENEUROPA-2659: Entity browser - improve visual styling.#101

Open
nagyad wants to merge 3 commits intomasterfrom
OPENEUROPA-2659
Open

OPENEUROPA-2659: Entity browser - improve visual styling.#101
nagyad wants to merge 3 commits intomasterfrom
OPENEUROPA-2659

Conversation

@nagyad
Copy link
Member

@nagyad nagyad commented Apr 7, 2020

The first commit is from the Event integration, but I need this solution for testing in EWCMS since there the files are not directly in fixtures, but in separate subfolders.

@nagyad nagyad force-pushed the OPENEUROPA-2659 branch from d3d5721 to db5960a Compare April 7, 2020 10:45
* Create a file entity from given file and return its object.
*
* @param string $file_name
* File name, relative to Mink 'files_path' location.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name is no longer relative to the files_path (Ignore this if you take my previous comment into account)

$files = $table->getColumnsHash();
foreach ($files as $properties) {
$file = $this->createFileEntity($properties['file']);
$file_name = basename($properties['file']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could handle this inside the createFileEntity method to avoid duplicating the code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, why not.

imanoleguskiza
imanoleguskiza previously approved these changes Apr 8, 2020
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

Successfully merging this pull request may close these issues.

2 participants